package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type UserOnlinetime struct {
	Uid   int   `json:"uid" gorm:"primaryKey"` //int(10) NOT NULL,
	Total int64 `json:"total"`                 //int(10) DEFAULT '0' COMMENT '在线时长：秒',
	Month int64 `json:"month"`                 //int(10) DEFAULT '0' COMMENT '月在线时长：秒',
}

func (UserOnlinetime) TableName() string {
	return fmt.Sprintf("%suser_onlinetime", models.Prefix)
}
